package mm.chenchen.modules.script.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import mm.chenchen.modules.script.dao.model.request.ScriptInstanceQuery;
import mm.chenchen.modules.script.entity.ScriptInstance;
import mm.chenchen.utils.R;

import java.util.Map;

/**
 * @author
 * @email
 * @date 2021-07-29 10:50:49
 */
public interface ScriptInstanceService extends IService<ScriptInstance> {
    R findPage(Page<Map> page, ScriptInstanceQuery param);

    R getById(Long objId);

    R saveInfo(ScriptInstance param) throws Exception;

    R getConfig(Long objId);

    R updateConfig(Long objId, Map param);
    R runInstance(Long objId,Long operId);

    R update(ScriptInstance param);

    R deleteById(Long id);
}

